﻿using SmartWMS.Domain.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Domain.BasicsDatum
{
    /// <summary>
    /// 库位
    /// </summary>
    public class Location : KeyEntity
    {
        /// <summary>
        /// 库位编号
        /// </summary>
        [MaxLength(30)]
        public string? LocationCode { get; set; }

        /// <summary>
        /// 库位名称
        /// </summary>
        [MaxLength(30)]
        public string? LocationName { get; set; }

        /// <summary>
        /// 库位类型
        /// </summary>
        [MaxLength(30)]
        public string? LocationType { get; set; }

        /// <summary>
        /// 库位面积
        /// </summary>

        public int Locationarea { get; set; }

        /// <summary>
        /// 所属仓库Id
        /// </summary>

        public int WarehouseId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(200)]
        public string? Remarks { get; set; }

        /// <summary>
        /// 是否默认
        /// </summary>
        public bool IsDefault { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool IsDisable { get; set; }
    }
}
